{% load staticfiles %}
{% include "user_header.html" %}
    <div>
        {% if has_fans %}
            {% for u in users %}
                <div class="user-info fans-box">
                <a href="/user/{{ u.username }}">
                    <img class="fans-info-icon" src=/media/{{ u.icon }}>
                    </a>
                    <div class="user-name-box">
                        <a href="/user/{{ u.username }}" class="fans-info-name">{{ u.name }}</a>
                        <div class="fans-info-follow" onclick="followClick({{ u.id }},'fans-follow-')">
                            <a id="fans-follow-{{ u.id }}" class="{% if u.following %} following {% endif %}" >{% if u.following %}取消{% endif %}关注</a>
                        </div>
                        <a class="user-info-text">{{ u.text }} </a>
                    </div>
                    <div class="user-image-box">
                        {% for post in u.get_post_images %}
                            <img src="{{ post.get_first_image }}">
                        {% endfor %}

                    </div>
                    <div style="clear:both">
                    </div>
                </div>
            {% endfor %}
        {% else %}
            <div style="height: 300px;width: 100%;text-align: center;vertical-align: center;padding-top: 50px">
                用户还没有任何粉丝
            </div>
        {% endif %}

    </div>
</div>
{% include 'user_footer.html' %}